import unittest
import pprint as pp
import random


class Test_PROXY(unittest.TestCase):

    def test_proxy(self):
        from util.proxy import PROXY
        proxy = PROXY()
        assert isinstance(proxy.proxy_pool, list)
        assert ':' in proxy.get_random_proxy()
        assert proxy.remove_proxy(proxy.get_random_proxy())

        proxy01 = PROXY()
        assert len(proxy.proxy_pool) == len(proxy01.proxy_pool)

    def test_t(self):
        i = 3
        print('resultTable:%1.0f:resultListTableColumnCtr'%(i/3))
        # print(ind)


# class TestDict(unittest.TestCase):
#     def setUp(self):
#         print('setUp...')

#     def tearDown(self):
#         print('tearDown...')

#     def test_proxy(self):
#       import util.proxy


if __name__ == '__main__':
    unittest.main()
